<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 用户推荐列表</li>
        </ul>
    </div>
    <div id="rightside" class="user_info">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h3>用户推荐列表</h3>
            </div>
            <div class="contentbox recomment" style="min-height:900px;">
            	<div>
                    <form method="get" action="admin.php" class="form-inline" role="form" >
                    	<textarea id="uids" placeholder="推荐用户的uid,多个人时以逗号(英文)分隔开" name="uids" cols="80" rows="2"></textarea>
                    	<input type="hidden" value="recomment" name="ac">
                    	<input type="hidden" value="addUserToRecomment" name="op">
                    	<input type="submit" value="推荐" class="btn recomment_add" /> 
                    </form>
                </div>
                <div class="extrabottom" style="margin:10px 0px;">
                    <form method="get" action="admin.php" class="form-inline" role="form">
                    	<div class="input-prepend" id="count_uid">
							<span class="add-on">用户</span>
							<input class="span2" id="prependedInput" type="text" placeholder="UID1" name="uid1" value="{$uidsArr[0]}" >
							<input class="span2" id="prependedInput" type="text" placeholder="UID2" name="uid2" value="{$uidsArr[1]}" >
						</div>
                		排序选择:
                       	<select name="orderby" id="orderby" class="span2">
                       	 	<option value="level" class="level_click" {$orderbyArr['level']}>等级数 </option>
                       	 	<option value="diaryTimes" class="other_click" {$orderbyArr['diaryTimes']}>日记数 </option>
                       	 	<option value="commentTimes" class="other_click" {$orderbyArr['commentTimes']}>评论数 </option>
                       	 	<option value="meFollowTimes" class="other_click" {$orderbyArr['meFollowTimes']}>关注数 </option>
                       	 	<option value="followMeTimes" class="other_click" {$orderbyArr['followMeTimes']}>粉丝数 </option>
                       	 	<option value="likeTimes" class="other_click" {$orderbyArr['likeTimes']}>喜欢数 </option>
                       	 	<option value="likeMeTimes" class="other_click" {$orderbyArr['likeMeTimes']}>日记被喜欢数 </option>
                       	 	<option value="topicTimes" class="other_click" {$orderbyArr['topicTimes']}>话题数 </option>
                       	 	<option value="la_act" class="other_click" {$orderbyArr['la_act']}>最后活跃时间 </option>
                       	</select> 
                       	<select name="ordersc" class="span2">
                       	 	<option value="desc"{$orderscArr['desc']}>降序</option>
                       	 	<option value="asc"{$orderscArr['asc']}>升序</option>
                       	</select> 
                        <select name="perpage" class="span2">
                            <option value="20"{$perpageArr[20]}>每页显示20个</option>
                            <option value="50"{$perpageArr[50]}>每页显示50个</option>
                            <option value="100"{$perpageArr[100]}>每页显示100个</option>
                         </select>
                         <span id="show" style="margin-top:10px;"></span>
                         <input type="hidden" value="recomment" name="ac">
                         <input type="hidden" value="op" name="getRecommentList">
                         <input type="hidden" value="1" name="query">
                         <input type="submit" value="查询" class="btn" /> 
                    </form>
                </div>
                <div style="clear: both;"></div>
                <div class="extrabottom">
                <table width="100%" class="table table-striped">
                    <thead>
                        <tr>
                        	<th>头像</th>
                            <th>用户昵称/uid</th>
                            <th>达人状态</th>
                            <th>等级数</th>
                            <th>日记数</th>
                            <th>评论数</th>
                            <th>关注数</th>
                            <th>粉丝数</th>
                            <th>喜欢数</th>
                            <th>日记被喜欢数</th>
                            <th>话题数</th>
                            <th>最后活跃时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <!--{if $result}-->
                    <tbody>
                    	<!--{loop $result $value}-->
                        <tr>
                        	<td><img src="{$value[avatar]}" width="20px" height="20px"/></td>
                            <td>
                            	<a href="admin.php?ac=user_profile&uid={$value[uid]}" title="{$value[nickname]}" target="_blank">{$value[nickname]}/{$value[uid]}</a>
                            </td>
                            <td>
                            	<!--{if $value[user][is_ability]}-->达人<!--{else}-->-·-·-·-<!--{/if}-->
                            </td>
                            <td>{$value[level]}</td>
                            <td>{$value[diaryTimes]}</td>
                            <td>{$value[commentTimes]}</td>
                            <td>{$value[meFollowTimes]}</td>
                            <td>{$value[followMeTimes]}</td>
                            <td>{$value[likeTimes]}</td>
                            <td>{$value[likeMeTimes]}</td>
                            <td>{$value[topicTimes]}</td>
                            <td>
                            	<!--{if $value[la_act]}-->
                            	<!--{date('Y-m-d H:i:s', $value[la_act])}-->
                            	<!--{else}-->
                            	暂无活跃时间
                            	<!--{/if}-->
                            </td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}" target="_blank">
                            	<img src="static/img/icons/gif_people.gif" width="24" height="24" /></a>
                            	<a target="_blank" href="admin.php?ac=recomment&op=delUserFromRecomment&uid={$value[uid]}">
								<img width="24" height="24" src="static/img/icons/gif_delete.gif">
								</a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                    <!--{/if}-->
                </table>
                </div>
                <div class="extrabottom1">
                    <ul>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                    </ul>
                    共{$totalNum}条记录
                    <div class="bulkactions">
                        <ul class="pagination">
                       		<!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">返回首页</a></li>
                            <!--{if $currtenPage > 0}-->
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <!--{/if}-->
                            <!--{if $currtenPage < $totalPages}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                            <!--{/if}-->
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->
